Return the sizeof an array of struct. Equivalent to sizeof operator but works on generics too.
'宣言
Public Overloads Shared Function SizeOf(Of As {New, Struct})( _
ByVal () As _
) As System.Integer
public static System.int SizeOf<>(
[]
)
where T: new(), struct
パラメータ
- array
- The array of struct to evaluate.
型パラメータ
- T
- A struct.
戻り値の型
Size in bytes of this array of struct.